<template>
    <div class="drawerContainer">
        <el-form :model="propJson" label-width="auto" style="width: 100%">
            <el-form-item label="数据绑定对象">
                <el-select v-model="propJson.contentVariable" placeholder="参数名称" style="width: 100%">
                    <el-option v-for="info in commonParam" :label="info.variableName" :value="info.variableName" />
                </el-select>
            </el-form-item>

            <el-form-item label="是否展示工具栏">
                <el-radio-group v-model="propJson.isShowToolbar">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="是否展示菜单栏">
                <el-radio-group v-model="propJson.isShowMenuBar">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="富文本高度">
                <el-input v-model="propJson.maxHeight" style="width: 100%" placeholder="富文本高度 - 数字无px" />
            </el-form-item>
        </el-form>
    </div>
</template>

<script setup lang="ts" name="RichEditorDrawer">
import {computed, defineProps} from "vue";
import {useLowCodeStore} from "@/stores/lowcode/lowcode.ts";

let props = defineProps(['commonParam']);

let commonParam = computed(() => {return props['commonParam']})

let propJson = computed(() => {return useLowCodeStore().lowCodeDrawerJsonInfo});


</script>

<style scoped lang="less">

</style>